package zero.tech.games.gate.process;

import zero.tech.core.data.Resp;
import zero.tech.wsnet.common.ReqProcess;
import zero.tech.wsnet.controller.Controller;
import zero.tech.wsnet.controller.GateController;
import zero.tech.wsnet.net.WebClient;

public abstract class GateLogined extends ReqProcess {

	@Override
	public void process(WebClient webClient, Resp param) {
		Controller controller = webClient.getController();
		if (controller == null) {
			// 没有登陆
			webClient.activeClose();
			return;
		}
		process((GateController) controller, param);		
	}
	public abstract void process(GateController controller, Resp param);
}
